import 'package:flutter/material.dart';

// Directions
// Flutter provides two text fields out of the box: TextField and TextFormField.

class TextFieldDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    final appTitle = 'Form Validation Demo';
    return MaterialApp(
      title: appTitle,
      home: Scaffold(
        appBar: AppBar(
          title: Text(appTitle),
        ),
        body: ListView(
          children: <Widget>[
            TextField(
              decoration: InputDecoration(
                  border: InputBorder.none,
                  hintText: 'Please enter a search term'),
            ),
            TextFormField(
              decoration: InputDecoration(labelText: 'Enter your username'),
            ),
          ],
        ),
      ),
    );
  }
}
